package com.gzsxy.excel.constants;

/**
 * @Author
 * @Description
 * @Date 2022/01/19
 * @Param $
 * @return $
 **/
public class taskConstants {
    public enum stateEu{

        /**
         * no start
         */
        NOSTART("未开始","1"),
        /**
         * Under development
         */
        UNDER("研发中","2"),
        /**
         *  Implemented
         */
        IMPL("已完成","3");


        private String value;
        private String name;
        stateEu(String name,String value) {
            this.value = value;
            this.name = name;
        }

        public static String getNameByValue(String value) {
            for (stateEu t : stateEu.values()) {
                if (t.getValue().equals(value)) {
                    return t.getName();
                }
            }
            return null;
        }

        public static String getValueByName(String name) {
            for (stateEu t : stateEu.values()) {
                if (t.getName().equals(name)) {
                    return t.getValue();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getName() {
            return this.name;
        }
    }
    public enum priorityEu{

        /**
         * LOW
         */
        LOW("Low","0"),
        /**
         * MIDDLE
         */
        MIDDLE("Middle","1"),
        /**
         *  HIGH
         */
        HIGH("High","2");

        private String value;
        private String name;
        priorityEu(String name,String value) {
            this.value = value;
            this.name = name;
        }

        public static String getNameByValue(String value) {
            for (priorityEu t : priorityEu.values()) {
                if (t.getValue().equals(value)) {
                    return t.getName();
                }
            }
            return null;
        }

        public static String getValueByName(String name) {
            for (priorityEu t : priorityEu.values()) {
                if (t.getName().equals(name)) {
                    return t.getValue();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getName() {
            return this.name;
        }
    }
}
